import request from '@/utils/request.js'

export const operlogApi={
	normalList(operLogQuery){
		return request.get('/operlog/selectNormalByPage',{params:operLogQuery})
	},
	abnormalList(operLogQuery){
		return request.get('/operlog/selectAbnormalByPage',{params:operLogQuery})
	},
	deleteById(id) {
		return request.delete( `/operlog/deleteById/${id}`)   //反引号，直接写参数。否则需要字符串拼接
	},
	deleteAll(ids) {
		return request.delete( `/operlog/deleteAll/${ids}`)
	},
	deleteAllNormal() {
		return request.delete( '/operlog/deleteAllNormal')
	},
	deleteAllAbnormal() {
		return request.delete( '/operlog/deleteAllAbnormal')
	},
	selectById(id) {
		return request.get(`/operlog/selectById/${id}`)
	},
	
}


